-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: basic rating display #2653
base: feat/reviews-and-ratings
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
f86198c
to
1d12420
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
160d8be
to
e59b001
Compare
e59b001
to
6cc5ce0
Compare
packages/core/src/pages/[slug]/p.tsx
Outdated
@@ -68,15 +77,31 @@ type Props = PDPContentType & { | |||
// https://www.npmjs.com/package/deepmerge | |||
const overwriteMerge = (_: any[], sourceArray: any[]) => sourceArray | |||
|
|||
const isClientOfferEnabled = (storeConfig as StoreConfig).experimental | |||
.enableClientOffer | |||
|
|||
function Page({ data: server, sections, globalSections, offers, meta }: Props) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Risk: Affected versions of next are vulnerable to Acceptance of Extraneous Untrusted Data With Trusted Data / Authorization Bypass Through User-Controlled Key.
Fix: Upgrade this library to at least version 13.5.7 at faststore/pnpm-lock.yaml:12940.
Reference(s): GHSA-gp8f-8m3g-qvj9, CVE-2024-46982
💬 To ignore this, reply with:
• /fp <comment>
for false positive
• /ar <comment>
for acceptable risk
• /other <comment>
for all other reasons
Alternatively, triage in Semgrep AppSec Platform to ignore the finding created by ssc-adb055b9-fed0-4d70-a57d-eb9825b09449.
Semgrep found 3
Risk: Affected versions of next are vulnerable to Acceptance of Extraneous Untrusted Data With Trusted Data / Authorization Bypass Through User-Controlled Key. Fix: Upgrade this library to at least version 13.5.7 at faststore/pnpm-lock.yaml:12940. Reference(s): GHSA-gp8f-8m3g-qvj9, CVE-2024-46982 |
d57303d
to
2203c7f
Compare
What's the purpose of this pull request?
To add rating stars to existing components:
<ProductCardContent/>
<ProductTitle/>
How it works?
If the feature flag for reviews and ratings, defined at
discovery.config
, it's turned on, then everywhere a<ProductCard/>
is used then it will display the product star ratingHow to test it?
preview
References
JIRA TASK: SFS-2063
JIRA TASK: SFS-2065
Checklist
You may erase this after checking them all 😉
PR Description
Just Arrived
Most Wanted
Deals & Promotions
Product Details
Product Gallery